﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Demo_test.Models.phantrang;
using PagedList;
namespace Demo_test.Controllers
{
    public class PhantrangController : Controller
    {
        // GET: Phantrang
        Model1 mde = new Model1();
        public ActionResult Index(int page = 1, int pageSize = 12)
        {
            List<Product> listProduct = mde.Products.ToList();
            PagedList<Product> model = new PagedList<Product>(listProduct, page, pageSize);

            return View(model);
        }
    }
}